﻿using System;
using System.Windows;

namespace Utility3D.Extensions
{
    public static class PointExtensions
    {
        public static double Distance(this Point source, Point refPoint)
        {
            var x = refPoint.X - source.X;
            var y = refPoint.Y - source.Y;
            return Math.Sqrt(x*x + y*y);
        }
    }
}